<?php
//Get the menu from the database
class MenuComponent extends Object {
    function fetchData(&$controller){
        //Dynamically Loading the model of the menu, because it's not necessary to have it on every controller.
        $userInstance = ClassRegistry::init('Menu');
        //$totalUsers = $userInstance->find('all');
        
        
        //App::import('Model', 'Menu');
        //$this->Menu = new Menu();
        return $userInstance->find('all');
    }
}
?>